package demo1;

public class Silver extends Card{
    public Silver(String name,double balance){
        super(name, balance);
    }

    @Override
    public double pay(double payment) {
        double p2 = payment*0.85;
        return p2;
    }
}
